package com.example.coupon.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface MerchantActivityMapper {

    @Insert("insert into merchant_activity (merchant_id, activity_id, sign_up_time) values " +
            "(#{merchantId}, #{activityId}, #{signUpTime})")
    Integer insertMerchantActivity(@Param("merchantId") Long merchantId, @Param("activityId") Long activityId,
                                   @Param("signUpTime") Date signUpTime);
}